package cn.edu.sgu.www.mhxysy.dto.zuoqi;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ZuoqiCategoryDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 坐骑名称
     */
    @NotBlank(message = "坐骑名称" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "坐骑名称", required = true)
    private String name;

    /**
     * 坐骑类型
     */
    @Positive(message = "坐骑类型" + CustomMessages.ILLEGAL)
    @NotNull(message = "坐骑类型" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "坐骑类型", required = true)
    private Integer type;

    /**
     * 风尚数值
     */
    @Range(min = 3, max = 15, message = "风尚数值" + CustomMessages.ILLEGAL)
    @NotNull(message = "风尚数值" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "风尚数值", required = true)
    private Integer fashion;
}